package com.liang.subject.infra.basic.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 题目点赞表
 */
@TableName(value ="subject_liked")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SubjectLiked implements Serializable {
    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * 题目ID
     */
    private Long subjectId;

    /**
     * 点赞用户ID
     */
    private String likeUserId;

    /**
     * 点赞状态 0：取消 1：点赞
     */
    private Integer status;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除 0：否 1：是
     */
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}